package com.xiaozeng.clients;

import com.xiaozeng.param.ProductSearchParam;
import com.xiaozeng.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: xiaozeng
 * @Date: 2022 11
 * @Description:
 **/
@FeignClient(name = "search-service")
public interface SearchClient {

    /**
     * 搜索服务 商品查询
     */
    @PostMapping("/search/product")
    Result search(@RequestBody ProductSearchParam productSearchParam);

}
